-- GENERATED SPELL FOR [Fallenroot Satyr] --


function spell0_4788(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_4788', 593, 1)
end

function spell1_4788(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4788', 5350, 1)
end

function Sorts_4788(pUnit, Event)
local choix_sorts_4788 = math.random(0, 1)
if choix_sorts_4788 == 0 then
pUnit:RegisterEvent('spell0_4788', 1, 1)
end
if choix_sorts_4788 == 1 then
pUnit:RegisterEvent('spell1_4788', 1, 1)
end
end

function mob4788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4788', math.random(1500, 3000), 1)
end

function mob4788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4788, 1, 'mob4788_Action')
RegisterUnitEvent(4788, 2, 'mob4788_Leave')
RegisterUnitEvent(4788, 3, 'mob4788_Kill')
RegisterUnitEvent(4788, 4, 'mob4788_Die')
